<?php
namespace Events\model;

class Register
{
   public $FK_PARTICIPANT_ID;
   public $FK_EVENT_ID;
  // public $ORGANIZATION;
   
   /*update data*/
 /*  public $INSERT_USER_ID;
   public $UPDATE_USER_ID;
   public $INSERT_DATETIME;
   public $UPDATE_DATETIME;
   public $STATUS;
  */ 
   
   public function exchangeArray($data)
   {
       $this->FK_PARTICIPANT_ID=(!empty($data['FK_PARTICIPANT_ID'])) ? $data['FK_PARTICIPANT_ID'] : null;
       $this->FK_EVENT_ID=(!empty($data['FK_EVENT_ID'])) ? $data['FK_EVENT_ID'] : null;
      // $this->ORGANIZATION=(!empty($data['ORGANIZATION'])) ? $data['ORGANIZATION']  : null;
       
 /*    $this->INSERT_USER_ID=(!empty($data['INSERT_USER_ID'])) ? $data['INSERT_USER_ID'] : null;
       $this->UPDATE_USER_ID=(!empty($data['UPDATE_USER_ID'])) ? $data['UPDATE_USER_ID'] : null;
       $this->INSERT_DATETIME=(!empty($data['INSERT_DATETIME'])) ? $data['INSERT_DATETIME'] : null;
       $this->UPDATE_DATETIME=(!empty($data['UPDATE_DATETIME'])) ? $data['UPDATE_DATETIME'] : null;
       $this->STATUS=(!empty($data['STATUS'])) ? $data['STATUS'] : 1; //active=1 // inactive=0
  */     
   }
   
   public function getArrayCopy()
   {
       return get_object_vars($this);
   }
}

?>